package com.example.springbootvue3.controller;

import com.example.springbootvue3.Service.impl.UserServiceImpl;
import com.example.springbootvue3.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private UserServiceImpl userServiceimpl;
    @RequestMapping("/findbyId")
    public User findbyId(Integer id){
        return userServiceimpl.findbyId(id);
    }
}
